import request from '@/utils/request'

// 新增部门接口
export function departmentAdddata(data) {
  return request.post('/company/department', data)
}

// 查询企业的部门列表 接口
export function departmentFinddata() {
  return request.get('/company/department')
}

// 根据ID修改部门详情 接口
export function departmentChangdata(data) {
  return request.put(`/company/department/${data.id}`, data)
}

// 根据ID删除部门 接口
export function departmentdeldata(id) {
  return request.delete(`/company/department/${id}`)
}

// 根据ID查询部门详情 接口
export function departmentlookdata(id) {
  return request.get(`/company/department/${id}`)
}
